package com.LatitudeYao;

/**
 * Created by GTS on 2017/7/21.
 */


public class MyLinkedStack<T> {
    class Node<U>{
        U item;
        Node<U> next;
        Node(){
            item=null;
            next=null;
        }
        Node(U item,Node<U> next){
            this.item = item;
            this.next = next;
        }

        boolean end (){
            return item==null && next == null;
        }


    }

}
